package com.moujitx.wecom.repository;

import com.moujitx.wecom.entity.MessageLog;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MessageLogRepository extends JpaRepository<MessageLog, Long> {
    List<MessageLog> findByDestinationId(Long destinationId);
    List<MessageLog> findByStatus(String status);
    List<MessageLog> findByDestinationIdAndStatus(Long destinationId, String status);
}